Skip to content

Only Rebuild the Vendor that updated.#11820

Merged
delphiactual merged 4 commits into
masterfrom
vendor-recompute-perf
Jun 22, 2026
Merged

Only Rebuild the Vendor that updated.#11820
delphiactual merged 4 commits into
masterfrom
vendor-recompute-perf

Conversation

@delphiactual

Copy link
Copy Markdown
Contributor

During #11816 and #11819 I noticed a lot of rebuilding with my debug lines, and this a stab a only rebuilding what needs rebuilt

Memoize vendor building per-vendor to avoid full rebuilds on component trickle

On the vendors page, item components stream in one vendor at a time, and each update rebuilt every vendor because toVendorGroups depends on the whole vendors response. Cache each built D2Vendor keyed on its own inputs so a single vendor's update only rebuilds that vendor.

…t trickle

On the vendors page, item components stream in one vendor at a time, and each update rebuilt every vendor because toVendorGroups depends on the whole vendors response. Cache each built D2Vendor keyed on its own inputs so a single vendor's update only rebuilds that vendor.
@delphiactual delphiactual marked this pull request as ready for review June 19, 2026 16:19
@delphiactual delphiactual changed the title Memoize Vendor Building Only Rebuild the Vendor that updated. Jun 19, 2026
Comment thread src/app/vendors/d2-vendors.ts
Comment thread src/app/vendors/d2-vendors.ts
Comment thread src/app/vendors/d2-vendors.ts Outdated
@delphiactual delphiactual merged commit b8ae5ab into master Jun 22, 2026
4 checks passed
@delphiactual delphiactual deleted the vendor-recompute-perf branch June 22, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants